package com.calligraphy.bases.utils;


import com.alibaba.fastjson.JSONObject;

import java.io.Serializable;

public class SetMsg implements Serializable {

	private static final long serialVersionUID = 6877076538182007085L;

	/**
	 * 设置基本返回信息
	 * @param json
	 * @param errCode
	 * @param errMsg
	 */
	public static void setMessage(JSONObject json, int errCode, String errMsg){
			if(json==null) {
				json=new JSONObject();
			}
			json.put("resCode", errCode);
			json.put("errMsg", errMsg);
}

}
